<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body id="b">
<script>
    var o = {
        userinfo:{name:'frank',age:20},
        say:function(a){
            alert(a)
        }
    }
    console.log(window.location);//对象的属性读取
    console.log(o.userinfo);

        var b = document.getElementById('aaa')
    console.log(window.getComputedStyle(b || document.body));
        o.say('你好');

        alert('windo可以省略')
        window.alert('windo可以省略')
</script>
</body>
</html>